import request from '@/utils/request'

// 查询平台_店铺通用设置列表
export function listGeneralsettings() {
  return request({
    url: '/prod-api/platform/generalsettings/get',
    method: 'get'
  })
}

export function getPayLevelInfo() {
  return request({
    url: '/prod-api/customer/remoteCustomer/getPayLevelInfo',
    method: 'get'
  })
}

// 查询平台_店铺通用设置详细
export function getGeneralsettings(generalsettingsUid) {
  return request({
    url: '/prod-api/platform/generalsettings/' + generalsettingsUid,
    method: 'get'
  })
}

// 新增平台_店铺通用设置
export function addGeneralsettings(data) {
  return request({
    url: '/prod-api/platform/generalsettings',
    method: 'post',
    data: data
  })
}

// 修改平台_店铺通用设置
export function updateGeneralsettings(data) {
  return request({
    url: '/prod-api/platform/generalsettings',
    method: 'put',
    data: data
  })
}

// 删除平台_店铺通用设置
export function delGeneralsettings(generalsettingsUid) {
  return request({
    url: '/prod-api/platform/generalsettings/' + generalsettingsUid,
    method: 'delete'
  })
}
